home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr52
/
sh50pro.zip
/
HELP.PRG
< prev
next >
Wrap
Text File
|
1993-04-08
|
6KB
|
167 lines
FUNCTION Help
*==========================================================================
* Help (Field Level Help System)
* Project Name: Helpdemo
* Project Description: Superhelp Library
* Written By: Darryl Strickland
*
* Help System Generated by Superhelp Codegen 5.0
* Generated August 11, 1991 - 8:42 PM
* Copyright (c) by DJS Applications
*
* Help Methods - Simulated Memoedit
* Superhelp Codegen Reference File Produced (SHELP.REF )
* Help System Requires Superhlp.Lib at Link Time
*
* Thank you for using Superhelp Code Generator 5.0 - DJS Applications
*==========================================================================
PARAMETER cProc,nLine,cVar
LOCAL nRowhlp,nColhlp,lBadfile,cOldArea,cOldColor
LOCAL nCurState,nHelpSize
LOCAL nBurnSize,cBurnDate,cBurnTime
PRIVATE nHlphandle,nTopRow,nLeftCol,nBotRow,nRightCol,cHeader
PRIVATE cFooter,nHeadcol,nFootcol,cWinColor,nShadClrf,nShadClrb,cFrame,cMidBar
PRIVATE nWinType,cShadType,nBoxMethod,lIplode,lXplodeTxt,nHlpSpacer
PRIVATE cHeadColor,cFootColor,cFramColor,cTrimHdr,nFootType
PRIVATE lMicroVoic,lEditRef,nPadSize,nLookPt,cOldScr
PRIVATE nTxtSize,nMWidth,nNoLines,nDspMeth,nLineSize,cTrimFoot
PRIVATE nText_Cnt,nScrnSize,nStartRow,lOutLoop,nNoFrames,nBliMrkx
PRIVATE nLines,nCnt,cSpeakStr,lSpeakOk,lVoiceload,cLstDir,nStartPt,aHelpline:={}
PRIVATE nReadSize,lTopPage,lBotPage,nByteRead,nPrevRead
SET PROCEDURE TO HELPLIB
SET PROCEDURE TO HELPMGR
SET PROCEDURE TO HELPCON
SETBLINK(.F.)
lVoiceload := .F.
nBliMrkx := 13
nRowhlp := ROW()
nColhlp := COL()
SET KEY 28 TO
cOldcolor := SETCOLOR()
nCurState := SETCURSOR(0)
cProc := TRIM(cProc)
cVar := TRIM(cVar)
cOldscr := SAVESCREEN(0,0,MaxRow(),MaxCol())
lBadfile := .F.
IF FILE("SHELP.REF")
nHlphandle := FOPEN("SHELP.REF",2)
nHlpsize := FSEEK(nHlphandle,0,2)
FSEEK(nHlphandle,-20,2)
nBurnSize := SPACE(7)
cBurnDate := SPACE(8)
cBurnTime := SPACE(5)
FREAD(nHlphandle,@nBurnSize,7)
FREAD(nHlphandle,@cBurnDate,8)
FREAD(nHlphandle,@cBurnTime,5)
FSEEK(nHlphandle,0)
IF nHlpsize <> VAL(nBurnSize) .OR. '08/11/91' <> cBurnDate .OR. '20:42' <> cBurnTime
lBadfile := .T.
ENDIF
ELSE
lBadfile := .T.
ENDIF
IF lBadfile
SRIGHTBX(09,20,13,60,"╓─╖║╜─╙║ ",.F.,'B/W+','B/W+','R',.T.,7,0)
@09,22 SAY "╢ Help Error ╟"
@11,22 SAY "Please restore SHELP.REF from disk"
@13,25 SAY "╢ Superhelp Codegen 5.0 ╟"
INKEY(10)
SETCOLOR(cOldcolor)
SET KEY 28 TO Help
@nRowhlp,nColhlp SAY ""
RESTSCREEN(0,0,MaxRow(),MaxCol(),cOldscr)
RETURN NIL
ENDIF
DO CASE
* Window Description : Superhelp Introduction
CASE (cProc == "HELPDEMO" .AND. cVar == "A")
HELPPREP(218)
* Window Description : Window Commands
CASE (cProc == "HELPDEMO" .AND. cVar == "B")
HELPPREP(3809)
* Window Description : Color Commands
CASE (cProc == "HELPDEMO" .AND. cVar == "C")
HELPPREP(9707)
* Window Description : Shadow Commands
CASE (cProc == "HELPDEMO" .AND. cVar == "D")
HELPPREP(10473)
* Window Description : Help Code Generation
CASE (cProc == "HELPDEMO" .AND. cVar == "E")
HELPPREP(11431)
* Window Description : User Guide Generation
CASE (cProc == "HELPDEMO" .AND. cVar == "F")
HELPPREP(13053)
* Window Description : Data Dictionary Generation
CASE (cProc == "HELPDEMO" .AND. cVar == "G")
HELPPREP(13677)
* Window Description : Help Text Commands
CASE (cProc == "HELPDEMO" .AND. cVar == "H")
HELPPREP(14296)
* Window Description : System Defaults
CASE (cProc == "HELPDEMO" .AND. cVar == "I")
HELPPREP(20618)
* Window Description : Import/Export Text
CASE (cProc == "HELPDEMO" .AND. cVar == "J")
HELPPREP(29752)
* Window Description : Project Information Setup
CASE (cProc == "HELPDEMO" .AND. cVar == "K")
HELPPREP(30870)
* Window Description : Color Setup
CASE (cProc == "HELPDEMO" .AND. cVar == "L")
HELPPREP(32260)
* Window Description : Screen Capture Utility
CASE (cProc == "HELPDEMO" .AND. cVar == "M")
HELPPREP(32790)
* Window Description : Help Manager
CASE (cProc == "HELPDEMO" .AND. cVar == "N")
HELPPREP(34038)
* Window Description : Link Windows
CASE (cProc == "HELPDEMO" .AND. cVar == "O")
HELPPREP(35230)
* Window Description : INKEY()/ENKEY() Sample Window
CASE (cProc == "NOWAIT" .AND. cVar == "INKEY1")
HELPPREP(36591)
* Window Description : Link Window Demonstration
CASE (cProc == "REGISTER" .AND. cVar == "FNAME");
.OR. (cProc == "REGISTER" .AND. cVar == "LNAME");
.OR. (cProc == "REGISTER" .AND. cVar == "ADD1");
.OR. (cProc == "REGISTER" .AND. cVar == "ADD2");
.OR. (cProc == "REGISTER" .AND. cVar == "ZIP");
.OR. (cProc == "REGISTER" .AND. cVar == "PHONE")
HELPPREP(37133)
OTHERWISE
Helpcon(cProc,0,cVar)
SETCOLOR(cOldcolor)
SET KEY 28 TO Help
@nRowhlp,nColhlp SAY ""
RESTSCREEN(0,0,MaxRow(),MaxCol(),cOldscr)
RETURN NIL
ENDCASE
DSPHELP()
SETCOLOR(cOldcolor)
SET KEY 28 TO Help
FCLOSE(nHlphandle)
SETCURSOR(nCurState)
RELEASE aHelpLine
@nRowhlp,nColhlp SAY ""
RESTSCREEN(0,0,MaxRow(),MaxCol(),cOldscr)
RETURN NIL